using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Bulb.Test.RepositoryTests
{
    [TestClass]
    public class LatestTests
        : RepositoryTests
    {
        [TestMethod]
        public void TestThatLatestReturnLatestBulb()
        {
            var result = MockBulbItemRepository.Latest(b => b.DateTime);

            Assert.IsNotNull(result);
            Assert.AreEqual(new DateTime(2013, 3, 9, 16, 5, 7, 123), result.DateTime);
            Assert.AreEqual(1, result.Id);
        }
    }
}